package com.hp.dao;

import com.hp.pojo.FriendVerification;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * @author cksh
 * @create 2021-07-08 9:46
 */
@Mapper
@Repository
public interface FriendVerificationMapper {
    public int addVerification(FriendVerification friendVerification);

    public int delVerification(int userId);

    public List<FriendVerification> selectAllByUserId(int userId);

//    map: {userId, fromId, toId, verificationStatus, verificationTime}
    public int updateVerification(Map map);

    public FriendVerification selectOne(FriendVerification friendVerification);
}
